//
//  MCPersonInformationFooterCell.m
//  TLYL
//
//  Created by MC on 2017/6/15.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCPersonInformationFooterCell.h"
@interface MCPersonInformationFooterCell ()

@property (nonatomic,strong)UIButton * btn_Save;

@end

@implementation MCPersonInformationFooterCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        [self initView];
    }
    return self;
}

- (void)initView{
    
    self.backgroundColor=[UIColor whiteColor];
    
    _btn_Save=[[UIButton alloc]init];
    _btn_Save.backgroundColor=[UIColor cyanColor];
    [_btn_Save setTitle:@"保存" forState:UIControlStateNormal];
    [self addSubview:_btn_Save];
    [_btn_Save addTarget:self action:@selector(action_Save) forControlEvents:UIControlEventTouchUpInside];
    [_btn_Save mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.mas_bottom).offset(0);
        make.left.equalTo(self.mas_left).offset(50);
        make.right.equalTo(self.mas_right).offset(-50);
        make.height.mas_equalTo(40);
    }];
    
    
}
/*
 * 点击保存
 */
-(void)action_Save{
    if (self.block) {
        self.block();
    }
}

-(void)setDataSource:(id)dataSource{
    _dataSource=dataSource;
}

+(CGFloat)computeHeight:(id)info{
    
    return 100;
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
